#
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
#                         University Research and Technology
#                         Corporation.  All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
#                         of Tennessee Research Foundation.  All rights
#                         reserved.
# Copyright (c) 2004-2009 High Performance Computing Center Stuttgart,
#                         University of Stuttgart.  All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
#                         All rights reserved.
# Copyright (c) 2008-2014 Cisco Systems, Inc.  All rights reserved.
# Copyright (c) 2008      Sun Microsystems, Inc.  All rights reserved.
# Copyright (c) 2017-2020 Intel, Inc.  All rights reserved.
# Copyright (c) 2021-2025 Nanook Consulting  All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

AM_CFLAGS = \
            -DPMIX_CONFIGURE_USER="\"@PMIX_CONFIGURE_USER@\"" \
            -DPMIX_CONFIGURE_HOST="\"@PMIX_CONFIGURE_HOST@\"" \
            -DPMIX_CONFIGURE_DATE="\"@PMIX_CONFIGURE_DATE@\"" \
            -DPMIX_BUILD_USER="\"$$USER\"" \
            -DPMIX_BUILD_HOST="\"$${HOSTNAME:-`(hostname || uname -n) | sed 1q`}\"" \
            -DPMIX_BUILD_DATE="\"`$(top_srcdir)/config/getdate.sh`\"" \
            -DPMIX_BUILD_CFLAGS="\"@CFLAGS@\"" \
            -DPMIX_BUILD_CPPFLAGS="\"@CPPFLAGS@\"" \
            -DPMIX_BUILD_LDFLAGS="\"@LDFLAGS@\"" \
            -DPMIX_BUILD_LIBS="\"@LIBS@\"" \
            -DPMIX_CC_ABSOLUTE="\"@PMIX_CC_ABSOLUTE@\"" \
            -DPMIX_GREEK_VERSION="\"@PMIX_GREEK_VERSION@\"" \
            -DPMIX_REPO_REV="\"@PMIX_REPO_REV@\"" \
            -DPMIX_RELEASE_DATE="\"@PMIX_RELEASE_DATE@\""

if PMIX_INSTALL_BINARIES

bin_PROGRAMS = pmix_info

EXTRA_DIST = help-pmix_info.txt

endif # PMIX_INSTALL_BINARIES

pmix_info_SOURCES =  \
    pmix_info.h  \
    support.h  \
    pmix_info.c  \
    support.c

pmix_info_LDADD = \
    $(top_builddir)/src/libpmix.la
